Thread: [Jumping into C++] Need help with Chapter 7, problem 1

  1. #16
    Registered User
    Join Date
    Jun 2016
    Posts
    40
    Finally solved it! Though the algorithm is still pretty ugly, so I'll still reverse-engineer the examples in the stackoverflow link posted earlier.

    If you're curious, my code (you can just copy-paste it into a .cpp and compile it): show at bpaste

    Could a moderator please mark this thread as solved?
    Last edited by Tesp; 07-02-2016 at 06:44 PM. Reason: Fixed bpaste link.

  2. #17
    Registered User taazz's Avatar
    Join Date
    May 2016
    Posts
    50
    singleDigits and firstTwenty arrays have duplicate values you should merge them to one or simple delete the singledigit array. There is the small matter of singular and plural as well but that's between you and your evaluator..

  3. #18
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    There is the small matter of singular and plural as well but that's between you and your evaluator..
    I don't think just writing numbers that you'd have to worry about pluralizing.

  4. #19
    Registered User
    Join Date
    Jun 2016
    Posts
    40
    Quote Originally Posted by taazz View Post
    singleDigits and firstTwenty arrays have duplicate values you should merge them to one or simple delete the singledigit array. There is the small matter of singular and plural as well but that's between you and your evaluator..
    I don't know what you mean by evaluator, but you're right in how I should have erased singleDigits and just used firstTwenty instead. xD

  5. #20
    Registered User
    Join Date
    Jun 2016
    Posts
    40
    After testing my program some more, it turns out that it doesnt quite work like it should. Well, I might just fix it for real sometime in the future; can't halt my progress too long just for one problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Jumping Into C++ Chapter 14 Problem 4
    By mbartholomew in forum C++ Programming
    Replies: 3
    Last Post: 12-28-2014, 03:10 PM
  2. Jumping Into C++: Chapter 14 Problem 1
    By programmerafael in forum C++ Programming
    Replies: 2
    Last Post: 07-21-2014, 12:28 AM
  3. jumping into c++ chapter 5 problem 7
    By etricity in forum C++ Programming
    Replies: 4
    Last Post: 04-06-2014, 11:23 PM
  4. Jumping Into C++ - Chapter 8 Problem[3]
    By Mohamed Adel in forum C++ Programming
    Replies: 3
    Last Post: 08-28-2013, 09:14 AM
  5. Jumping To C++ - Chapter 8 Problem
    By Mohamed Adel in forum C++ Programming
    Replies: 4
    Last Post: 08-27-2013, 01:02 PM

Tags for this Thread